class StudentInfo:
    name = None
    age = 0
    score = None

    def __init__(self,name,age,score):
        self.name = name
        self.age = age
        self.score = score
        pass

    def print_info(self):
        print(f"---This is student's info:---\nname:{self.name}\nage:{self.age}\nscore:{self.score}")
        pass
    
    def get_name(self):
        return(self.name)
    def set_name(self,name):
        self.name = name

def main():
    s1=StudentInfo("Wang",18,92)
    s1.print_info()

    s1.set_name("Li")
    print(s1.get_name())

    s1.print_info()

    pass

if __name__ == "__main__":
    main()